import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MenuLayoutComponent } from './workSp/menu.layout.component';
import { MyAccountComponent } from './workSp/my-account/my-account.component';
import { SettingComponent } from './workSp/setting/setting.component';
import { BanksComponent } from './workSp/banks/banks.component';
import { AddressComponent } from './workSp/address/address.component';
import { EditImgComponent } from './workSp/my-account/edit-img/edit-img.component';

const routes: Routes = [
    {
        path: '',
        children: [
            {
                path: '',
                redirectTo: 'home',
            },
            {
                path: 'myacy',
                component: MenuLayoutComponent,
                children: [
                    {
                        path: 'account',
                        component: MyAccountComponent,
                        data: {
                            title: '我的账户',
                            translate: 'myacy.account'
                        }
        
                    },{
                        path: 'editImg',
                        component: EditImgComponent,
                        data: {
                            title: '编辑头像',
                            translate: 'myacy.account'
                        }
                    },{
                        path: 'setting',
                        component: SettingComponent,
                        data: {
                            title: '安全设置',
                            translate: 'myacy.account'
                        }
                    },{
                        path: 'banks',
                        component: BanksComponent,
                        data: {
                            title: '账号本',
                            translate: 'myacy.account'
                        }
                    },{
                        path: 'address',
                        component: AddressComponent,
                        data: {
                            title: '地址本',
                            translate: 'myacy.account'
                        }
                    }
                ]
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemberMenuCenterRoutingModule { }
